package com.lesama.mextends;

public class ExtendsDemo2 {
    public static void main(String[] args) {
        Child child = new Child();
        child.print(30);
    }
}

class Father {
    int num = 10;
}

class Child extends Father {
    int num = 20;
    public void print(int num) {
        System.out.println(num);
        System.out.println(this.num);
        System.out.println(super.num);
    }
}